<?php
include 'base.php';
include 'connectdb.php';
include 'requireLogin.php';

$stSQL="select code from product ";
$resultsub=mysql_query($stSQL);
?>

<form action="print_code.php" method="post">
<div class="form_settings">
<p><span>
<select name="formCode" >
<option value="" selected="selected">..Chọn mã..</option>
<?php
if(mysql_num_rows($resultsub)> 0)
{  
     while($row = mysql_fetch_array($resultsub))
    {
?>          
    <option value="<?php echo"".$row['code']."";?>"><?php echo"".$row['code']."";?></option>
                
<?php
    }
}
?>
        </select>
    </span> <input class="submit" type="submit" value="In phiếu" /></p>
    </div>
</form>
 <?php include 'footer.php';?>
